#!/bin/bash

if [[ ":$PATH:" == *":/home/timi/local/share/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/:"* ]]; then
    echo "contains compiler path"
else
    echo "does not contain"
	export PATH=/home/timi/local/share/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/:${PATH}
fi

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

echo "start make goodix.ko"
make O=out M=drivers/input/touchscreen modules
